package com.cfm880.devart;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class Main2Activity extends AppCompatActivity {
    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        Log.i(TAG, "Main2Activity>>>onCreate");
    }
    /** visible lifetime and
     * The onStart() and onStop() methods can be called multiple times,
     * as the activity becomes visible and hidden to the user. **/
    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG, "Main2Activity>>>onStart");
    }
    /**foreground lifetime */
    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG, "Main2Activity>>>onResume");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG, "Main2Activity>>>onPause");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG, "Main2Activity>>>onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG, "Main2Activity>>>onDestroy");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(TAG, "Main2Activity>>>onRestart");
    }
}
